.class Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;
.super Ljava/lang/Object;
.source "AdmobAdaptor.java"

# interfaces
.implements Lcom/google/ads/AdListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "AdmobListener"
.end annotation


# instance fields
.field private final mAdaptor:Ljava/lang/ref/Reference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/Reference",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)V
    .locals 1
    .parameter "adaptor"

    .prologue
    .line 91
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 92
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;->mAdaptor:Ljava/lang/ref/Reference;

    .line 93
    return-void
.end method


# virtual methods
.method public onDismissScreen(Lcom/google/ads/Ad;)V
    .locals 4
    .parameter "ad"

    .prologue
    const/4 v3, 0x0

    .line 97
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;

    .line 98
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 99
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->dismissedFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 100
    #setter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;
    invoke-static {v0, v3}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$002(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/google/ads/InterstitialAd;)Lcom/google/ads/InterstitialAd;

    .line 101
    #setter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;
    invoke-static {v0, v3}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$102(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    .line 103
    :cond_0
    return-void
.end method

.method public onFailedToReceiveAd(Lcom/google/ads/Ad;Lcom/google/ads/AdRequest$ErrorCode;)V
    .locals 7
    .parameter "ad"
    .parameter "errorCode"

    .prologue
    const/4 v6, 0x0

    const/4 v1, 0x0

    .line 107
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v2}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;

    .line 108
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;
    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->isStopped()Z

    move-result v2

    if-nez v2, :cond_2

    .line 109
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$300()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v2

    #getter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mTag:Ljava/lang/String;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$200(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "Failed to recieve AdMob ad..."

    new-array v5, v1, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 110
    #getter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$400(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->isSuppressAdmobAutorefresh()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 111
    #calls: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->stopAutoRefresh(Ljava/lang/Object;)V
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$500(Ljava/lang/Object;)V

    .line 113
    :cond_0
    if-eqz p1, :cond_1

    #getter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$000(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Lcom/google/ads/InterstitialAd;

    move-result-object v2

    if-ne p1, v2, :cond_1

    const/4 v1, 0x1

    .line 114
    .local v1, isInterstitial:Z
    :cond_1
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v3

    const-string v4, "admob"

    if-eqz p2, :cond_3

    invoke-virtual {p2}, Lcom/google/ads/AdRequest$ErrorCode;->toString()Ljava/lang/String;

    move-result-object v2

    :goto_0
    invoke-interface {v3, v4, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 116
    #setter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;
    invoke-static {v0, v6}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$002(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/google/ads/InterstitialAd;)Lcom/google/ads/InterstitialAd;

    .line 117
    #setter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;
    invoke-static {v0, v6}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$102(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    .line 119
    .end local v1           #isInterstitial:Z
    :cond_2
    return-void

    .line 114
    .restart local v1       #isInterstitial:Z
    :cond_3
    const-string v2, "Loading timeout."

    goto :goto_0
.end method

.method public onLeaveApplication(Lcom/google/ads/Ad;)V
    .locals 0
    .parameter "ad"

    .prologue
    .line 123
    return-void
.end method

.method public onPresentScreen(Lcom/google/ads/Ad;)V
    .locals 3
    .parameter "ad"

    .prologue
    .line 127
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;

    .line 128
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 129
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->shownFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 131
    :cond_0
    return-void
.end method

.method public onReceiveAd(Lcom/google/ads/Ad;)V
    .locals 7
    .parameter "ad"

    .prologue
    const/4 v6, 0x0

    const/4 v1, 0x0

    .line 135
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v2}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;

    .line 136
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;
    if-eqz v0, :cond_3

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->isStopped()Z

    move-result v2

    if-nez v2, :cond_3

    .line 137
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$700()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v2

    #getter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mTag:Ljava/lang/String;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$600(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "AdMob ad recieved..."

    new-array v5, v1, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 138
    #getter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$000(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Lcom/google/ads/InterstitialAd;

    move-result-object v2

    if-ne p1, v2, :cond_0

    const/4 v1, 0x1

    .line 139
    .local v1, interstitialLoaded:Z
    :cond_0
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v2

    const-string v3, "admob"

    invoke-interface {v2, v3, v1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 140
    if-eqz v1, :cond_1

    .line 141
    #calls: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->handleInterstitialSuccess()V
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$800(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)V

    .line 143
    :cond_1
    #getter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$400(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->isSuppressAdmobAutorefresh()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 144
    #calls: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->stopAutoRefresh(Ljava/lang/Object;)V
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$500(Ljava/lang/Object;)V

    .line 146
    :cond_2
    #setter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;
    invoke-static {v0, v6}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$002(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/google/ads/InterstitialAd;)Lcom/google/ads/InterstitialAd;

    .line 147
    #setter for: Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;
    invoke-static {v0, v6}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->access$102(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    .line 149
    .end local v1           #interstitialLoaded:Z
    :cond_3
    return-void
.end method
